from functools import reduce
def mini(x,y):
    return x if x<y else y

a=[2345,234,52,52,35,2345,2,452,35,2354,25,423,1342]
y=reduce(mini,a)
print(y)



# from functools import reduce

# def fun(x,y):
#     z=x if x>y else y
#     return z

# x=[4,5,16,7,8,1,90,3]
# y=reduce(fun,x)
# print(y)